<template>
	<div class="app">
		<h1>我是App组件</h1>
		<h2>{{a}}</h2>
		<hr>
		<Child :a="a" :qwe="qwe"/>
	</div>
</template>

<script>
	import Child from './components/Child.vue'

	export default {
		name:'App',
		components:{Child},
		data() {
			return {
				a:1
			}
		},
		methods:{
			qwe(asd){
				console.log('我是App组件，我是父组件',asd)
			}
		}
	}
</script>

<style>
	.app{
		background-color: gray;
		padding: 20px;
	}
</style>